<html>
<head>
<script type="text/javascript" src="<?php echo site_js_url('js')?>/photo.js"></script>

</head>
<body>
	<div>
		<li>我的图片</li> 
		<?php 
			echo $uploadDir = $this->base->config->uploadDir; 
			if(isset($new_photo)) {
				foreach($new_photo as $photo) {
					echo $photo['upload_name'];
					echo $upload_dir.'\\'.$photo['upload_time'].'\\'.$photo['upload_id'];
					//echo "$upload_dir.'\\'.$photo['upload_time'].'\\'.$photo['upload_id']
					//echo "<img src=\"$upload_dir.'\\'.$photo['upload_time'].'\\'.$photo['upload_id']\" alt=\"\"/>";
					?>
					<img src="<?php echo $upload_dir.'\\'.$photo['upload_time'].'\\'.$photo['upload_id']?>" alt=""/>
					<?php
				}
			}
		?>
		<li>图片管理</li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<h3>将你的图片上传</h3>
		<h4>你的上传空间的大小为200M，还剩：积分：</h4>
		<div id="upload">
			<div>
				<div>
					<label for="album">上传到已有的相册</label>
					<span id="album_name"><?php echo $album_name;?></span>
					<span><a href="#" id="cr_album" onclick="createAlbum();">创建专辑</a></span>
					<div id="album"></div><div id="al"></div>
				</div>  
				<div>                                                                                                                                                        
					<form enctype="multipart/form-data"  method="post" action="<?php echo site_url('photo/upload');?>" >
						<div id="album_id" />
						<input type="hidden" name="album_id" value="<?php if(isset($album_id)) echo $album_id;?>" />
						选择图片：你一次最多可以上传总大小不超过2M的图片,一次最多上传5张<br />
						<input type="hidden" name="MAX_FILE_SIZE" value="200000" />
						
						<input name="image[]" type="file" />
						
						<div id="againup"></div>
						<input type="submit" value="上传" name="Submit" /><a href="#" onclick="uploadAgain();return false;">再传一张</a>
					</form>
				</div>  
			</div>
			
			
		</div>
	</div>
</body>
</html>